<template>
  <a-button type="primary" @click="clickBtn">
    Home:{{home}}
  </a-button>
</template>

<script setup lang="ts">
  import {ref} from "vue";
  import getGlobalProperties from "@/common/composable/getGlobalPropertiers";
  import { getHome } from "@/service/home/home"

  const app = getGlobalProperties()

  const home = ref(0)

  const clickBtn = () => {
    app?.$message.info('home')
    getHome().then(res => {
      console.log(res)
    })
  }

</script>

<style scoped>

</style>
